# Maintainer: Raatty <me@raatty.club>
pkgname=lightdm-mobile-greeter
pkgver=6
pkgrel=2
pkgdesc="A simple lightdm greeter for mobile"
url="https://git.raatty.club/raatty/lightdm-mobile-greeter"
#arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # thats all rust is build for
arch="" # libhandy-dev is now in testing/
license="MIT"
makedepends="cargo libhandy-dev lightdm-dev cargo-auditable"
source="$pkgname-$pkgver-2.tar.gz::https://git.raatty.club/raatty/lightdm-mobile-greeter/archive/$pkgver.tar.gz
	lock.patch
	"
builddir="$srcdir/$pkgname"
options="!check" # No tests


prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --release --frozen
}

package() {
	install -Dm755 target/release/lightdm-mobile-greeter -t "$pkgdir"/usr/bin/
	install -Dm644 lightdm-mobile-greeter.desktop -t "$pkgdir"/usr/share/xgreeters
}

sha512sums="
e111b312bd3a64772f587e77964672450eefb417bfcc7d39f277acbf9aa93fe6405b08a88d4da00a91c638b25de0f0c6c5c5222928c01c5c92a87f259d081757  lightdm-mobile-greeter-6-2.tar.gz
03f51c44bbba7943161ea03e93c4ddd91fe8c02458580a49fb691f053c51578073bb811778d1ed87a2c6a56de561de43a50fd31aacd9ea727201478c7c015b3a  lock.patch
"
